Package edu.claflin.finder.algo
Class Bundle
- java.lang.Object
-
- edu.claflin.finder.algo.Algorithm
-
- edu.claflin.finder.algo.Bundle
-
- All Implemented Interfaces:
Processable<Graph,Graph>,java.beans.PropertyChangeListener,java.util.EventListener
public class Bundle extends Algorithm implements java.beans.PropertyChangeListener
Processes aGraphsearching for subgraphs. Will utilize all provided algorithms. Effectively bundles more than one algorithm into a single algorithm.- Version:
- 3.1.2 February 4, 2015
- Author:
- Charles Allen Schultz II
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class edu.claflin.finder.algo.Algorithm
Algorithm.GraphSortOrder
-
-
Field Summary
Fields Modifier and Type Field Description private Algorithm[]algorithmsTheAlgorithmarray containing the algorithms to process graphs with.private intdoneNumber of algorithms executed.-
Fields inherited from class edu.claflin.finder.algo.Algorithm
args, counter, listener, PROP_PROGRESS
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.ArrayList<Graph>process(Graph graph)Processes data.voidpropertyChange(java.beans.PropertyChangeEvent evt)-
Methods inherited from class edu.claflin.finder.algo.Algorithm
addPropertyChangeListener, cull, getGraphSortOrder, getPartiteNumber, removePropertyChangeListener, setGraphSortOrder, setPartiteNumber, setProgress
-
-
-
-
Constructor Detail
-
Bundle
public Bundle(Algorithm[] algorithms)
Constructs the Algorithm object.- Parameters:
algorithms- the Algorithm array to process graphs with.
-
-
Method Detail
-
process
public java.util.ArrayList<Graph> process(Graph graph)
Processes data.
Finds most Subgraphs by running the graph through all the Algorithm objects in the algorithms array. Used to search the same via different methods.- Specified by:
processin interfaceProcessable<Graph,Graph>- Parameters:
graph- theGraphobject to search through.- Returns:
- the ArrayList of Graph objects holding all found subgraphs.
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent evt)
- Specified by:
propertyChangein interfacejava.beans.PropertyChangeListener
-
-